package com.gxa.service.impl;

import com.gxa.common.R;
import com.gxa.mapper.FkdMapper;
import com.gxa.pojo.Supplier;
import com.gxa.pojo.Supplier_Type;
import com.gxa.service.FkdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Author: zxy
 * Date: 2021/12/06 18:50
 * Description:
 * Version: V1.0
 */
@Service
public class FkdServiceImpl implements FkdService{
    @Autowired(required = false)
    private FkdMapper fkdMapper;
    @Override
    public R queryGYS(Integer id,String msg,Integer param1, Integer param2) {
        List<Supplier> list = fkdMapper.queryGYS(id,msg,param1,param2);
        R r = new R();
        if(list!=null){
            r.setMsg("success");
            r.setCode(200);
            r.setData(list);
        }
        return r;
    }

    @Override
    public R queryGYSType() {
        List<Supplier_Type> list = fkdMapper.queryGYSType();
        return null;
    }
}
